// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest } from '@/libs/axios'

//获取商品活动列表数据
export const getActivityList = (params) => {
  return getRequest(`/activity/list`, params)
}
// 添加商品活动
export const addActivity = (params) => {
  return postRequest("/activity/save", params)
}
// 删除商品活动
export const delActivity = (ids, params) => {
  return deleteRequest(`/activity/${ids}`, params)
}
// 编辑商品活动
export const editActivity = (id, params) => {
  return putRequest(`/activity/${id}`, params)
}
//获取活动详情
export const activityDetail = (id, params) => {
  return getRequest(`/activity/${id}`, params)
}
//获取活动审核意见
export const getApprovalOpinion = (params) => {
  return getRequest(`/activity/examine/activityId`, params)
}
//获取活动商品信息
export const getGoodsInfo = (params) => {
  return getRequest(`/activity/goods/goods`, params)
}
//获取店铺列表信息
export const getStoreList = (params) => {
  return getRequest(`/activity/goods/store`, params)
}
//宣传活动下架
export const belowActivity = (id, params) => {
  return putRequest(`/activity/status/${id}`, params)
}
//获取商品活动审核列表
export const getActivityAudit = (params) => {
  return getRequest(`/activity/status`, params)
}
//提交审核
export const submitAudit = (params) => {
  return putRequest(`/activity/examine/status`, params)
}